#hell0_makefile
ifneq ($(KERNELRELEASE),)
obj-m:=hello_platform.o
else
include ../../script/common.mk
# KERNELDIR:=/lib/modules/$(shell uname -r)/build
endif

PWD:=$(shell pwd)
TEST_FILE:=test_hello_platform
TEST_FILE_BIN:=$(TEST_FILE).bin

all:default
default:ko test

ko:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

test:
	$(CC) $(TEST_FILE).c -o $(TEST_FILE_BIN)

clean:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
	rm -rf $(TEST_FILE_BIN)
